﻿using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using CHFramework;

public class LocalizitionText : MonoBehaviour 
{
    public string LKey = string.Empty;

    private Text LLabel;

	private void Awake () 
	{
        LLabel = this.GetComponent<Text>();
	}

    private void OnEnable()
    {
        LLabel.text = Localizition.Localize(LKey);
    }
}
